Clarify the docs for gtk_widget_set_has_window()
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Aug 2010 01:39:20 +0000 (21:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 10 Aug 2010 01:39:20 +0000 (21:39 -0400)
The previous version of the docs did not make it clear that has-window
is the defaults. Pointed out by Magnus Hjorth, bug 615474.

gtk/gtkwidget.c

index 3da8d5816c10754bd86cf9d5d9356869cb709b10..8d22c70b55e36251992f37027556e38dcf8c44e3 100644 (file)
@@ -5944,9 +5944,9 @@ gtk_widget_get_visible (GtkWidget *widget)
  * all realized widgets have a non-%NULL "window" pointer
  * (gtk_widget_get_window() never returns a %NULL window when a widget
  * is realized), but for many of them it's actually the #GdkWindow of
- * one of its parent widgets. Widgets that create a %window for
- * themselves in GtkWidget::realize() however must announce this by
- * calling this function with @has_window = %TRUE.
+ * one of its parent widgets. Widgets that do not create a %window for
+ * themselves in GtkWidget::realize() must announce this by
+ * calling this function with @has_window = %FALSE.
  *
  * This function should only be called by widget implementations,
  * and they should call it in their init() function.